package com.chen.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chen.domain.SysRoleMenu;
import com.chen.mapper.SysRoleMapper;
import com.chen.mapper.SysRoleMenuMapper;
import com.chen.service.SysRoleMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysRoleMenuServiceImpl extends ServiceImpl<SysRoleMenuMapper, SysRoleMenu> implements SysRoleMenuService {

    @Autowired
    private SysRoleMapper sysRoleMapper;

    @Override
    public void removeByMenuIds(List<Long> menuIds) {
        sysRoleMapper.deleteByMenuIds(menuIds);
    }
}
